﻿using System;
using System.Collections.Generic;

namespace Pixels.Logic
{
    public abstract class TileEntity
    {

        Tile _myTyle;

        /// <summary> CHANGE ONLY IN THIS MANNER </summary>
        public Tile OnTile {
            get { return _myTyle; }
            set {
                if (_myTyle != null) _myTyle.lostEntity(this);
                _myTyle = value;
                if (_myTyle != null) _myTyle.gainedEntity(this);
                    
            }
        }


    }
}
